﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace form
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void area_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void cal_Click(object sender, EventArgs e)
        {
            string len = length.Text;
            string wid = width.Text;
            string heig = height.Text;
            double length1 = Convert.ToDouble(len);
            double width1 = Convert. ToDouble(wid);
            double height1 = Convert.ToDouble(heig);
            double a = 2 * (length1 * height1 + length1 * width1 + width1 * height1);
            area.Text = a.ToString();
            double v = height1 * width1 * length1;
            volumn.Text = v.ToString();
        }
    }
}
